package com.dev.module_zqc_sleep.fragment

import androidx.compose.runtime.Composable
import com.alibaba.android.arouter.facade.annotation.Route
import com.dev.module_ui_composable.theme.JetComposableTheme
import com.dev.module_ui_composable.view.AbstractComposeFragment
import com.dev.module_zqc_sleep.activity.ClassifyActivity
import com.dev.module_zqc_sleep.mvi.ui.SleepHomePage

@Route(path = "/module_sleep/route/SleepHomeFragment")
class SleepHomeFragment : AbstractComposeFragment() {

    @Composable
    override fun ComposeContent() {
        JetComposableTheme(useSystemBarColor = false) {
            SleepHomePage { position ->
                navigateActivity(position)
            }
        }
    }

    private fun navigateActivity(position: Int) {
        ClassifyActivity.start(requireContext(), position)
    }

}